var express = require('express')

var router = express.Router()

router.get('/index', (req, res) => {
    // console.log(req.session)
    res.render('index.html', {
        user: req.session.user
    })
})

router.post('/index', function(req, res) {
    res.render('index.html', {
        user: req.session.user
    })
})


module.exports = router